package cn.com.dashihui.api.Quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.Scheduler;
import org.quartz.SchedulerException;

import com.jfinal.aop.Duang;

import cn.com.dashihui.api.service.GroupbuyingService2;
/**
 * 任务实例
 * @author Administrator
 *
 */
public class groupJob implements Job{

	private GroupbuyingService2 service = Duang.duang(GroupbuyingService2.class);
	
	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		
		int goodstr = context.getJobDetail().getJobDataMap().getInt("Goods");
		service.groupBuyOver(goodstr);
		
	}

}
